﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using Item.Buff;

namespace ItemComponent
{
    public abstract class MyItemComponentMono : MonoBehaviour, IMyItemComponent
    {
        private StringBuilder _sb;
        protected StringBuilder SB
        {
            get
            {
                if (_sb == null)
                    _sb = new StringBuilder();
                return _sb;
            }
        }


        public bool Active { get => enabled; set => enabled=value; }
        public abstract void OnBuffChange(STBuffEffectData buffEffectData);
        public abstract void InitComponent(LitJson.JsonData data, Item.ItemBase item);

        public virtual string GetDes()
        {
            return string.Empty;
        }
    }
}
